import requests


headers = {
    "authority": "mapi.vip.com",
    "accept": "*/*",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "cache-control": "no-cache",
    "pragma": "no-cache",
    "referer": "https://category.vip.com/",
    "sec-ch-ua": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Microsoft Edge\";v=\"122\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "script",
    "sec-fetch-mode": "no-cors",
    "sec-fetch-site": "same-site",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0"
}
cookies = {
    "VipDFT": "1",
    "mars_cid": "1708282140502_e3538ad28fd84440e2a0c5c7934fa8cb",
    "vip_first_visitor": "1",
    "vip_address": "%257B%2522pid%2522%253A%2522103104%2522%252C%2522cid%2522%253A%2522103104105%2522%252C%2522pname%2522%253A%2522%255Cu5b89%255Cu5fbd%255Cu7701%2522%252C%2522cname%2522%253A%2522%255Cu9a6c%255Cu978d%255Cu5c71%255Cu5e02%2522%257D",
    "vip_province": "103104",
    "vip_province_name": "%E5%AE%89%E5%BE%BD%E7%9C%81",
    "vip_city_name": "%E9%A9%AC%E9%9E%8D%E5%B1%B1%E5%B8%82",
    "vip_city_code": "103104105",
    "vip_wh": "VIP_HZ",
    "vip_ipver": "31",
    "user_class": "a",
    "VipUINFO": "luc%3Aa%7Csuc%3Aa%7Cbct%3Ac_new%7Chct%3Ac_new%7Cbdts%3A0%7Cbcts%3A0%7Ckfts%3A0%7Cc10%3A0%7Crcabt%3A0%7Cp2%3A0%7Cp3%3A0%7Cp4%3A0%7Cp5%3A1%7Cul%3A3105",
    "vpc_uinfo": "fr1352%3A0%2Cfr674%3AD1%2Cfr766%3A0%2Cfr896%3A0%2Cfr392%3A310505%2Cfr398%3A0%2Cfr408%3A0%2Cfr251%3AA%2Cfr1195%3A0%2Cfr848%3A0%2Cfr1196%3A0%2Cfr902%3A0%2Cfr901%3A0%2Cfr980%3A0%2Cfr1570%3A0%2Cfr713%3A0%2Cfr1575%3A0%2Cfr1051%3A0%2Cfr259%3AS0-4%2Cfr1655%3A0%2Cfr884%3A0%2Cfr863%3A0%2Cfr1527%3A0%2Cfr344%3A0%2Cfr249%3AA1%2Cfr328%3A3105%2Cfr1544%3A0%2Cfr1543%3A0%2Cfr1521%3A0",
    "mst_area_code": "104104",
    "mars_sid": "7a82bf0c7f450720de72e1f84101eb3d",
    "visit_id": "DEBBACD09723B4F080630FD1B99C700F",
    "VIP_QR_FIRST": "1",
    "mars_pid": "35",
    "vip_tracker_source_from": "",
    "pg_session_no": "5",
    "vip_access_times": "%7B%22detail%22%3A4%2C%22list%22%3A4%7D"
}
url = "https://mapi.vip.com/vips-mobile/rest/shopping/pc/product/module/list/v2"
params = {
    "callback": "getMerchandiseDroplets1",
    "app_name": "shop_pc",
    "app_version": "4.0",
    "warehouse": "VIP_HZ",
    "fdc_area_id": "103104105",
    "client": "pc",
    "mobile_platform": "1",
    "province_id": "103104",
    "api_key": "70f71280d5d547b2a7bb370a529aeea1",
    "user_id": "",
    "mars_cid": "1708282140502_e3538ad28fd84440e2a0c5c7934fa8cb",
    "wap_consumer": "a",
    "productIds": "6920189843779783955,6920790233306427529,6920381337285468700,6920189842635485008,6920823504741703497,6919741718244652631,6920873779598389907,6920817597884357769,6920281181393117916,6920802874883137613,6919883958033664859,6920775292652176585,6920423238474888983,6920189843779955987,6920790233323491465,6919736186861670865,6919550558956324508,6920823504741171017,6920305681775555479,6920796926998294611,6920790233306488969,6920189842635366224,6920291274045475530,6920775292634428617,6920833608940010903,6920786783125204499,6919959618681225563,6920381337302389276,6920775292651545801,6920305681792365463,6920292964955186003,6920813125449486403,6920790233323524233,6919550558905865884,6920294151765496521,6920253616666915103,6920786783125483027,6920437480116424529,6920829152060778267,6920857814282293460,6920294151765394121,6920291273977526986,6920823210897044243,6920437480116358993,6920347583102755219,6920334993907366487,6920775292651779273,6920817597919124617,6920189844196302099,6919280918019236433,",
    "scene": "search",
    "standby_id": "nature",
    "extParams": "{\"stdSizeVids\":\"\",\"preheatTipsVer\":\"3\",\"couponVer\":\"v2\",\"exclusivePrice\":\"1\",\"iconSpec\":\"2x\",\"ic2label\":1,\"superHot\":1,\"bigBrand\":\"1\"}",
    "context": "",
    "_": "1716219696314"
}
response = requests.get(url, headers=headers, cookies=cookies, params=params)

print(response.text)
print(response)